package com.joysuch.wwyt.edu.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author ZhangDong
 * @Date 2020/7/3 12:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EduRecordExcelDto {
    private Long id;
    private String userName;
    private String userCode;
    private String examName;
    private String score;
    private Float zgScore;
    private Float totalScore;
    //state: 0 不通过; 1 通过; null: 缺考
    private Integer state;
    private String examType;
    private Integer examTotalTime;
    private Date submitTime;

    private Long costTime;

    /**
     * 是否阅卷 0 不需要阅卷  1 未阅卷 2 已阅卷
     */
    private Integer isCheck;
    /**
     * 实际用时
     */
    private String actualTime;
    /**
     * 重考次数
     */
    private Integer submitTimes;
    /**
     * 答对提数
     */
    private Integer rightCount;
    /***
     * 答错提数
     */
    private Integer wrongCount;

    private Long userId;

    public EduRecordExcelDto(Long id,String userName, String userCode, String examName, String score, Float totalScore, Integer state, String examType, Integer examTotalTime,
                             Date submitTime, Long costTime, Integer submitTimes, Integer rightCount, Integer wrongCount,Integer isCheck,Long userId) {
        this.userName = userName;
        this.id = id;
        this.userCode = userCode;
        this.examName = examName;
        this.score = score;
        this.totalScore = totalScore;
        this.state = state;
        this.examType = examType;
        this.examTotalTime = examTotalTime;
        this.submitTime = submitTime;
        this.costTime = costTime;
        this.submitTimes = submitTimes;
        this.rightCount = rightCount;
        this.wrongCount = wrongCount;
        this.isCheck = isCheck;
        this.userId = userId;

    }

    public EduRecordExcelDto(String userName, String userCode, String examName, Integer state, Integer examTotalTime,
                             String actualTime, Integer submitTimes, Integer rightCount, Integer wrongCount) {
        this.userName = userName;
        this.userCode = userCode;
        this.examName = examName;
        this.state = state;
        this.examTotalTime = examTotalTime;
        this.actualTime = actualTime;
        this.submitTimes = submitTimes;
        this.rightCount = rightCount;
        this.wrongCount = wrongCount;
    }
}
